package com.richinfo.consumer.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import com.richinfo.consumer.service.HelloService;

/**
* Created by WangXJ
* 2018-10-30 15:04
*/
@RestController
public class ConsumerController {
	
	@Resource
	private HelloService helloService;

	@GetMapping("ribbon-consumer")
	public String helloConsumer() {
		return helloService.sayHello();
	}
}
